//
//  EventMore.m
//  GoodWayClient
//
//  Created by HuiDong on 15/12/22.
//  Copyright © 2015年 HuiDong. All rights reserved.
//

#import "EventMore.h"

@implementation EventMore
+ (instancetype)EventMoreWithDic:(NSDictionary *)dic
{
    return [[self alloc] initWithDic:dic];
}
- (instancetype)initWithDic:(NSDictionary *)dic
{
    if (self = [super init]) {
        NSNumberFormatter* numberFormatter = [[NSNumberFormatter alloc] init];
        self.eventId = [[numberFormatter stringFromNumber:dic[@"Id"]] intValue];
        self.Title = dic[@"Title"];
        self.Address = dic[@"Address"];
        self.BeginTime = (NSDate *)dic[@"BeginTime"];
        self.EndTime = (NSDate *)dic[@"EndTime"];
        self.CreateTime = (NSDate *)dic[@"CreateTime"];
        self.ImageUrl = dic[@"ImageUrl"];
        self.MaxCount = [[numberFormatter stringFromNumber:dic[@"MaxCount"]] intValue];
        self.BMCount = [[numberFormatter stringFromNumber:dic[@"BMCount"]] intValue];
        self.ActivityContent = dic[@"ActivityContent"];
        self.Description = dic[@"description"];
        self.Author = dic[@"Author"];
    }
    return self;
}
@end
